package business_logic;

public abstract class Tile
{
    private static final int DEFAULT_SIZE = 1;
    private static int m_size;
    
    static
    {
        m_size = DEFAULT_SIZE;
    }
    
    public static void setSize( int size )
    {
        m_size = size;
    }
    
    public static int getSize()
    {
        return m_size;
    }
    
    public static double tileToPixel( int value )
    {
        // Esto no estoy seguro q sea asi... igual no se usa para nada por ahora...
        return value/m_size;
    }

    public static int pixelToTile( double value )
    {
        return m_size * (int) Math.floor( value );
    }
    
    public static int speedToTickets( double speed )
    {
        return (int) Math.floor(1/speed);
    }
    
}
